package com.itheima.attendance.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.attendance.pojo.Attendance;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @author qiankaofei
 * @version 1.0
 * @date 2020/12/12 14:23
 */
public interface AttendanceMapper extends BaseMapper<Attendance> {

    /**
     * 根据企业id查询全勤人数
     */
    Integer findfullAttePeopleNumByCompanyId(@Param("companyId") String companyId, @Param("archiveDate") String archiveDate);

    /**
     * 根据userId和archiveDate查询当前用户当月的考勤数据情况
     */
    Map<String,Object> findAttenInfoByUserIdAndArchiveDate(@Param("userId") String userId, @Param("archiveDate") String archiveDate);
}
